package com.vhall.component.entity.gift.vo;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author xianglei
 * @date 2021/7/6 10:24
 */

@Data
public class GiftSendReqVo implements Serializable {

    private static final long serialVersionUID = 7447848076762705891L;

    @ParamName("room_id")
    @NotBlank(message = "room_id不能为空")
    private String roomId;

    @Pattern(regexp = "(ALIPAY)|(WEIXIN)", message = "已选的channel非法")
    @NotBlank(message = "channel参数错误")
    private String channel;

    @ParamName("service_code")
    @Pattern(regexp = "(QR_PAY)|(CASHIER)|(H5_PAY)|(JSAPI)", message = "已选的serviceCode非法")
    @NotBlank(message = "service_code参数错误")
    private String serviceCode;

    @ParamName("gift_id")
    @NotNull(message = "gift_id不能为空")
    private Long giftId;

    private Integer numbers;

    private String giftUserNickname;

    private String giftUserAvatar;

    private String giftUserId;

    private String receiverId;

    private String sourceId;

    private String tradeNo;

    @ParamName(value = "open_id")
    private String openId;

}
